$(function () {
// $('#ope').on('click', function () {
        var tbody=window.document.getElementById("tbody-result");
        $.ajax({
            type:'GET',
            dataType:'json',
            url:contextPath+"learner/info",
            success:function (data) {
                var str="";
                var strdata = JSON.stringify(data);
                str+="<tr>"+
                    "<td>"+data.name+"</td>"+
                    "<td>"+data.phone+"</td>"+
                    "<td>"+data.sex+"</td>"+
                    "<td>"+"<a href='password.html'>******</a>"+"</td>"+
                    "</tr>";
                tbody.innerHTML=str;
                console.log(data.name+" "+data.phone+" "+" "+data.sex);
            }
            ,
            error:function () {
                alert("查询失败")
            }
        })
});